import pytest
@pytest.mark.run(order=3)
def test_add3():
    print("添加商品3")
@pytest.mark.run(order=5)
def test_add5():
    print("添加商品5")
@pytest.mark.run(order=1)
def test_add1():
    print("添加商品1")
@pytest.mark.run(order=4)
def test_add4():
    print("添加商品4")
@pytest.mark.run(order=2)
def test_add2():
    print("添加商品2")

# pytest .\06-常用插件.py --html=report.html --self-contained-html
# pytest.mark.run ：修改用例执行顺序

@pytest.mark.flaky(reruns=5,reruns_delay=2)
def test_009():
    assert False == True
"""
失败最大重试次数为：5
每次失败重跑间隔：2s
"""
